首页
PHP
Tags
php教程
最新文章列表
简体中文
English
简体中文
中文(繁體)
日本語
한국어
Français
Deutsch
မြန်မာဘာသာ
当前位置:
首页
>
函数类别大全
>
getcwd
getcwd
获取当前工作目录
名称:
getcwd
分类:
目录函数
所属语言:
php
一句话介绍:
返回当前工作目录。
定义和用法
getchwd()
函数返回当前工作目录。
实例
获取当前工作目录:
<?php echo
getcwd()
?>
结果:
/home/php
语法
getcwd();
相关内容
如何使用PHP和SQLite进行数据删除操作
6
为什么上下文设置无效?可能是 stream_context_get_options() 没有正确读取
6
sapi_windows_cp_is_utf8 和 json_encode 结合使用的注意事项
7
如何使用PHP开发自定义的Slack应用
1
同类函数
chdir
chdir
改变目录
dir
dir
返回一个Directory类实例
rewinddir
rewinddir
倒回目录句柄
closedir
closedir
关闭目录句柄
getcwd
getcwd
获取当前工作目录
chroot
chroot
改变根目录
scandir
scandir
列出指定路径中的文件和目录
opendir
opendir
打开目录句柄
热门文章